<div class="refentry" lang="en" xml:lang="en"><a id="gluOrtho2D"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>gluOrtho2D — define a 2D orthographic projection matrix</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table><tr><td><code class="funcdef">void <b class="fsfunc">gluOrtho2D</b>(</code></td><td>GLdouble  </td><td><var class="pdparam">left</var>, </td></tr><tr><td> </td><td>GLdouble  </td><td><var class="pdparam">right</var>, </td></tr><tr><td> </td><td>GLdouble  </td><td><var class="pdparam">bottom</var>, </td></tr><tr><td> </td><td>GLdouble  </td><td><var class="pdparam">top</var><code>)</code>;</td></tr></table></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>left</code></em>, </span><span class="term"><em class="parameter"><code>right</code></em></span></dt><dd><p>
                    Specify the coordinates for the left and right vertical clipping planes.
                </p></dd><dt><span class="term"><em class="parameter"><code>bottom</code></em>, </span><span class="term"><em class="parameter"><code>top</code></em></span></dt><dd><p>
                    Specify the coordinates for the bottom and top horizontal clipping planes.
                </p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
            <code class="function">gluOrtho2D</code> sets up a two-dimensional orthographic viewing region.
            This is equivalent to calling <a class="citerefentry" href="glOrtho"><span class="citerefentry"><span class="refentrytitle">glOrtho</span></span></a> with
            <math overflow="scroll">

                <mrow>
                    <mi mathvariant="italic">near</mi>
                    <mo>=</mo>
                    <mn>-1</mn>
                </mrow>
            </math>
            and
            <math overflow="scroll">

                <mrow>
                    <mi mathvariant="italic">far</mi>
                    <mo>=</mo>
                    <mn>1</mn>
                </mrow>
            </math>.
        </p></div>
        {$pipelinestall}{$examples}
        <div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
            <a class="citerefentry" href="glOrtho"><span class="citerefentry"><span class="refentrytitle">glOrtho</span></span></a>,
            <a class="citerefentry" href="gluPerspective"><span class="citerefentry"><span class="refentrytitle">gluPerspective</span></span></a>
        </p></div><div class="refsect1" lang="en" xml:lang="en"><div id="Copyright"><h2>Copyright</h2><p>
            Copyright © 1991-2006
            Silicon Graphics, Inc. This document is licensed under the SGI
            Free Software B License. For details, see
            <a class="ulink" href="https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/" target="_top">https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/</a>.
        </p></div></div></div>
